Frugal Testing Interview Question

Two JAVA Output based questions