Puzzled duck
Source code: hw5.java