Verily interview question

spring-mass system