Hi, whats wrong with my code, it works fine but it is not getting verified. When I run it, the output is fine however the program does not terminate, could someone help ?