LinkedIn Interview Question

Valid Perfect Square