KPIT Technologies interview question

How do you decide whether it should be a client side or a server side validation