MAYA HTT Interview Question

Received an OA for coding