Applied Intuition interview question

A physics & algorithms question