Did a challenge in BASH