to check continuously with a specified interval whether a particular person is logged in or not

Write a shell script which checks continuously with a specified interval whether a particular person
is logged in or not. The login name should be supplied as an argument to the shell script at the
command prompt.

how to do this?