2 more

2 more problem from HackerRank resolve in scala