working on prob50
working on prob50