Aditya Birla Group interview question

Hard level Hacker rank questions