Breakdown of Ar tu esi gydytojas? — Ne, aš nesu gydytojas.
būti
to be
aš
I
tu
you (singular)
ar
whether, if (yes/no question particle)
Questions & Answers about Ar tu esi gydytojas? — Ne, aš nesu gydytojas.
How does esu become nesu?
In Lithuanian, to make a verb negative, you attach ne- directly to the beginning of the verb as one word. When you add ne- to forms of būti (to be) that start with e-, the two e's merge into one: ne- + esu becomes nesu (I am not), and ne- + esi becomes nesi (you are not).
Why do we say both Ne and nesu in the answer?
They do two different jobs, just like in English. The standalone word Ne before the comma means "No", while the prefix ne- inside nesu means "am not". You can also drop aš and gydytojas to give a natural short answer: Ne, nesu. (No, I am not.)
Can I leave out esi and nesu here?
In the question, yes: speakers very often leave out the present tense of būti and simply ask Ar tu gydytojas?, while keeping esi is also completely natural and slightly more emphatic. In the negative answer, though, you cannot just drop nesu, because the ne- attached to it is what makes the sentence negative.
Would gydytojas change if we were speaking to a woman?