checking the solution methods from hackpad added