MAYA HTT interview question

Received an OA for coding