When the first element of the periodic table is treated with dioxygen, it gives a compound whose solid state floats on its liquid state. This compound has an ability to act as an acid as well as a base. What products will be formed when this compound undergoes autoionisation?

The first element of the periodic table is hydrogen and its molecular form is dihydrogen (H2). When H2 reacts with O2, water is formed. Water is a liquid at room temperature. When liquid water freezes, it expands to form ice.
Density of ice is lower than that of liquid water and hence ice floats over water. Water is amphoteric in nature. It acts as a base in presence of strong acids and as an acid in presence of strong bases.
Due to amphoteric character, water undergoes self ionisation as shown below
This self ionisation of water is called auto-protolysis and autoionisation.