AC in C++ while TLE in Scala for DISHOWN

Dear @viv001

Kindly check the time limit for scala as the same algorithm gives AC in C++ while the same algorithm when coded in scala gives TLE.

//