Rapyuta Robotics Interview Question

First, was a coding round