Java T Point Interview Question