Sereja sequence b number p Sequence consist n integer a1a2an similarly sequence b consist m integer b1b2bm as usual Sereja study sequence today want find number position q qm1pnq1 sequence b obtain sequence aqaqpaq2paqm1p rearrange elementssereja need rush gym ask find describe position q