Here the memai memory pages are replaced based on First In First Out basis.
pages[12]={2,3,2,1,5,2,4,5,3,2,5,2}
Page Replacement Algorithms - FIRST IN FIRST OUT 2 -1 -1 2 3 -1 2 3 -1 2 3 1 5 3 1 5 2 1 5 2 4 5 2 4 3 2 4 3 2 4 3 5 4 3 5 2 Number of page faults : 9