solution for assignment number 2 in rtCamp careers