Synechron Interview Question

In MVVM where you kept business logic? Write code for login page implementing MVVM structure for that.