Santosh Betha's submission of Pattern B | CodeChef