This is solution for second assignemt for rtCamp careers