two solutoins for missing element between two arrays