Align Technology interview question

Classical a leat code questions