problem 5 bash solution