solved atm in c,python,java