They will check your logical understanding by asking some algo e.g. sorting, searching algos and difficulty will depend on your exp. In my case array was given and interviewer asked me to do sorting with any algo.
Sigiloso
I used the most easiest one bubble sort :)