Sololearn terminal is online terminal so everytime you can't take user input.
If you have multiple input then you have to take all input once.
In this case of your code you can take input like this in seperate line.
2 //total number of elements in array
123 //1st value of 1st array
AJ //1st value of 2nd array
567 //2nd value of 1st array
Name //2nd value of 2nd array.
If you take it in one line then it would be considered as single input