UiPath Interview Question

Logic questions on hackerrank