BI3 Technologies interview question

Coding Question: LeetCode 290 without using pre-defined functions was the first coding question. We were asked to use any online compiler, the question was displayed on screen.