Align Technology Interview Question

some logic questions and avarage code challenge