Toad Pimple array integer a_1 a_2 ldot a_nWe y reachable x xy exist integer array p x p_1 p_2 ldot p_ky a_p_i a_p_i1 0 integer 1 leq kHere denote bitwise and operationyou give q pair index check reachability