Hello sir @ankitgupta.1729 where can i learn the above approaches?
Fermat’s Little Theorem
Extended Euclidean Algorithm
These are quite famous, so, if you don’t get it from here then you can search some text over web or videos on youtube also.
Same as : https://gateoverflow.in/374789/go-classes-weekly-quiz-1-general-aptitude-question-2