grammar explain this

are you ok? cool.
are you cool? ok.

haa?