Bash Script Array Size Python Interview Question