Oh dear! You should never lie in an interview, because most companies have a policy that if you are deceitful and truth about something is discovered later, you can be immediately terminated. My friend did this (although she lied about being sacked for stealing from her previous company) and was actually escorted from the premises by the area manager and a security guard. How embarrassing!
I suppose the only thing you could do is come clean, and just say you answered incorrectly out of nerves and that you realised immediately what you had done but were too embarrassed to correct yourself. This makes you look a bit silly but is probably the closest to the truth you can come without outing yourself a liar to your potential future employer. Good luck with your next interview, and try and be a bit more careful next time…