For this Question: Your friend got bored with natural numbers so he decided to play around with the first N of those. He rearranged them in the following manner. Firstly, he writes all odd integers from 1 to N in ascending order and then he writes all even integers from 1 to N in ascending order after them. Now, he asks you to find the K<sup>th</sup> integer in this sequence. Help your friend find the answer.The first line of the input contains two integers N and K.

Constraints:
1 <= K <= N <= 10<sup>18</sup>Print the K<sup>th</sup> integer in this newly rearranged sequence.Sample Input:
10 4

Sample Output:
7, I have written this Solution Code: #include<bits/stdc++.h>
using namespace std;
#define int long long

signed main(){
    int n, k;
    cin >> n >> k;
    int x = (n + 1)/2LL;
    if(k <= x){
        cout << 2*k - 1;
    }
    else k -= x, cout << 2*k;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?