Twice linear


I’ m having trouble returning bigger numbers. It says that key doesn’t exist for them. Values in array are correct.