Print all odd numbers from an integer list | Amazon Interview Question