KUBRA interview question

behavioral questions, simple test on programming logic