AppDynamics interview question

Some typical leetcode as well as a system design question