CHEFRECP , time limit exceeded

https://ide.geeksforgeeks.org/wEGBDbMkTV