CardConnect interview question

Java language Q and A.