Can You Solve Amazon’s Hanging Cable Interview Question?