you give array b n positive integer you apply follow operation number time Select index 1leq ileq n swap a_i b_i ie a_i b_i vice versa find minimum possible value maxa_1 a_2 ldot a_n cdot maxb_1 b_2 ldot b_n apply operation number time possibly zero