Pulley interview question

Take home assignment do your own.