Added beginner solution in Bash Script