Robonik India interview question

exact principle