AtDrive Group interview question

In coding round on HACKERRANK there are 4 pattern question but level is high