ValueChecker Interview Question

How did you resolve the coding problem