Problem Description

Given an array and a value x, find the first index (0-based) where x is present. If not present, print -1.

Input Format

Line1: n x. Line2: n integers.

Output Format

One integer index.

Sample Test Case

Input:
6 7 1 7 3 7 5 9
Output:
1

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next